package com.chinapost.po;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Tywcb entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TYWCB", schema = "WDZY")
public class Tywcb implements java.io.Serializable {

	// Fields

	private String cid;
	private Tuser tuserByCcreateuserid;
	private Twdxx twdxx;
	private Tdept tdept;
	private Tuser tuserByCmodifyuserid;
	private Timestamp cbzrq;
	private String cncpz;
	private String cjjsx;
	private Double cje;
	private String czy;
	private String ckjkm;
	private Timestamp ccreatedate;
	private Timestamp cmodifydate;

	// Constructors

	/** default constructor */
	public Tywcb() {
	}

	/** minimal constructor */
	public Tywcb(String cid, Twdxx twdxx) {
		this.cid = cid;
		this.twdxx = twdxx;
	}

	/** full constructor */
	public Tywcb(String cid, Tuser tuserByCcreateuserid, Twdxx twdxx, Tdept tdept, Tuser tuserByCmodifyuserid, Timestamp cbzrq, String cncpz, String cjjsx, Double cje, String czy, String ckjkm, Timestamp ccreatedate, Timestamp cmodifydate) {
		this.cid = cid;
		this.tuserByCcreateuserid = tuserByCcreateuserid;
		this.twdxx = twdxx;
		this.tdept = tdept;
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
		this.cbzrq = cbzrq;
		this.cncpz = cncpz;
		this.cjjsx = cjjsx;
		this.cje = cje;
		this.czy = czy;
		this.ckjkm = ckjkm;
		this.ccreatedate = ccreatedate;
		this.cmodifydate = cmodifydate;
	}

	// Property accessors
	@Id
	@Column(name = "CID", unique = true, nullable = false, length = 36)
	public String getCid() {
		return this.cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CCREATEUSERID")
	public Tuser getTuserByCcreateuserid() {
		return this.tuserByCcreateuserid;
	}

	public void setTuserByCcreateuserid(Tuser tuserByCcreateuserid) {
		this.tuserByCcreateuserid = tuserByCcreateuserid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CWDID", nullable = false)
	public Twdxx getTwdxx() {
		return this.twdxx;
	}

	public void setTwdxx(Twdxx twdxx) {
		this.twdxx = twdxx;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CDEPTID")
	public Tdept getTdept() {
		return this.tdept;
	}

	public void setTdept(Tdept tdept) {
		this.tdept = tdept;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CMODIFYUSERID")
	public Tuser getTuserByCmodifyuserid() {
		return this.tuserByCmodifyuserid;
	}

	public void setTuserByCmodifyuserid(Tuser tuserByCmodifyuserid) {
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
	}

	@Column(name = "CBZRQ", length = 11)
	public Timestamp getCbzrq() {
		return this.cbzrq;
	}

	public void setCbzrq(Timestamp cbzrq) {
		this.cbzrq = cbzrq;
	}

	@Column(name = "CNCPZ", length = 40)
	public String getCncpz() {
		return this.cncpz;
	}

	public void setCncpz(String cncpz) {
		this.cncpz = cncpz;
	}

	@Column(name = "CJJSX", length = 100)
	public String getCjjsx() {
		return this.cjjsx;
	}

	public void setCjjsx(String cjjsx) {
		this.cjjsx = cjjsx;
	}

	@Column(name = "CJE", precision = 12)
	public Double getCje() {
		return this.cje;
	}

	public void setCje(Double cje) {
		this.cje = cje;
	}

	@Column(name = "CZY", length = 50)
	public String getCzy() {
		return this.czy;
	}

	public void setCzy(String czy) {
		this.czy = czy;
	}

	@Column(name = "CKJKM", length = 100)
	public String getCkjkm() {
		return this.ckjkm;
	}

	public void setCkjkm(String ckjkm) {
		this.ckjkm = ckjkm;
	}

	@Column(name = "CCREATEDATE", length = 11)
	public Timestamp getCcreatedate() {
		return this.ccreatedate;
	}

	public void setCcreatedate(Timestamp ccreatedate) {
		this.ccreatedate = ccreatedate;
	}

	@Column(name = "CMODIFYDATE", length = 11)
	public Timestamp getCmodifydate() {
		return this.cmodifydate;
	}

	public void setCmodifydate(Timestamp cmodifydate) {
		this.cmodifydate = cmodifydate;
	}

}